namespace BizTalk.BuildGenerator.UI.Navigation
{
    public class MoveNextResult
    {
        public MoveNextResult()
        {
            CanMoveNext = false;
            ContainsError = false;
        }

        public string ErrorMessage { get; private set; }

        public bool ContainsError { get; private set; }

        public bool CanMoveNext { get; set; }

        public void AddError(string message)
        {
            ContainsError = true;
            ErrorMessage = message;
        }
    }
}